package com.ctg.itrdc.imageconsole.common.constants;

/**
 * 
 * @Description 
 * @author <a href="mailto:18070514058@163.com">Piao.Wu</a>
 * @Data 2016年5月18日
 * @Version 1.0.0
 */
public class DockerConstant {
	
	public class DockerServerGroupCons{
		public static final String READ = "001"; // 只读
		public static final String READ_WRITE = "002"; // 读写
	}
	public class DockerPserverCons{
		public static final String NORMAL = "001"; // 正常
		public static final String SUSPENDED = "002"; // 暂停
		public static final String FAULT = "003"; // 故障
		public static final String REMOVE = "004"; // 移除
	}
	public class DockerImageCons{
		public static final String UNSTABLE = "000"; // 不稳定
		public static final String NORMAL = "001"; // 正常
		public static final String REMOVE = "002"; // 删除
		
		public static final String BASE = "001"; // 基础镜像
		public static final String BUILD = "002"; // 构建镜像
		public static final String SHARE = "003"; // 与我共享镜像
	}
	public class DockerImageIndexCons{
		public static final String UNSTABLE = "000"; // 不稳定
		public static final String NORMAL = "001"; // 正常
		public static final String REMOVE = "002"; // 删除
		public static final String DAMAGE = "003"; // 损坏
		
		public static final String BUILD = "001"; // 来源于镜像构建
		public static final String UPLOAD = "002"; // 来源于镜像上传
		public static final String OTHERS = "003"; // 其他来源
	}
	public class DockerMicroImageCons{
		public static final String BUILDING = "000"; // 构建中
		public static final String BUILD_SUCCESS = "001"; // 构建成功
		public static final String BUILD_FAIL = "002"; // 构建失败
		
	}
	public class K8sOperationRecord{
		public static final String EXECUTING = "001"; // 执行中
		public static final String EXECUTE_SUCCESS = "002"; // 执行成功
		public static final String EXECUTE_FAIL = "003"; // 执行失败
		
		public static final String OPERATION_OBJECT_RC = "RC"; // rc操作对象
		public static final String OPERATION_TYPE_RC_RESTART = "RESTART"; // rc重启
		public static final String OPERATION_TYPE_RC_SCALE = "SCALE"; // rc扩缩容
		public static final String OPERATION_TYPE_RC_DELETE = "DELETE"; // rc删除
	}
}
